package com.itheima.Mapper;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper  //运行时,自动创建接口的实现类对象,交给IOC管理
public interface UserMapper {
    //查询用户全部信息
    @Select("select * from user")
    public List<User> list();

}
